package com.i2silly.wxbot.pojo;

/**
 * @program: wx-bot
 * @description：websocket接收数据格式
 * @author: i2silly
 * @date: 2020年11月24日 18:13:57
 */
public class WsReceive {
    /**
     * 类型 心跳5005；接收消息：1 不支持表情包
     */
    private int type;
    private String content;
    private String id;
    /**
     * 接收人者，自己是self
     */
    private String receiver;

    /**
     * 发送者
     */
    private String sender;
    private int srvid;
    private String time;

    /**
     * 收到的消息指令
     */
    private int command = -1;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public int getSrvid() {
        return srvid;
    }

    public void setSrvid(int srvid) {
        this.srvid = srvid;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getCommand() {
        return command;
    }

    public void setCommand(int command) {
        this.command = command;
    }

    @Override
    public String toString() {
        return "WsReceive{" +
                "type=" + type +
                ", content='" + content + '\'' +
                ", id='" + id + '\'' +
                ", receiver='" + receiver + '\'' +
                ", sender='" + sender + '\'' +
                ", srvid=" + srvid +
                ", time='" + time + '\'' +
                ", command=" + command +
                '}';
    }
}
